package cn.tworice.common.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * 题目的答案
 * @Author 二饭
 * @Email 1786705138@qq.com
 * @Date 2021/12/24 13:11
 */

public class Answer implements Serializable {
    private String id;
    private String topicId; // 题目ID
    private String content; // 答案内容
    private Integer isCorrect; // 是否正确答案 1-正确 0-错误

    public Answer() {
    }

    public Answer(String id, String topicId, String content, Integer isCorrect) {
        this.id = id;
        this.topicId = topicId;
        this.content = content;
        this.isCorrect = isCorrect;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getIsCorrect() {
        return isCorrect;
    }

    public void setIsCorrect(Integer isCorrect) {
        this.isCorrect = isCorrect;
    }

    @Override
    public String toString() {
        return "Answer{" +
                "id='" + id + '\'' +
                ", topicId='" + topicId + '\'' +
                ", content='" + content + '\'' +
                ", isCorrect=" + isCorrect +
                '}';
    }
}
